import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/duty_schedule_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/duty_schedule_entity.g.dart';

@JsonSerializable()
class DutyScheduleEntity {
	late int id;
	late int companyId;
	late String companyName;
	late int scheduleConfigId;
	late String scheduleName;
	late String dutyStartDate;
	late String dutyEndDate;
	late String dutyPerson;
	late String personScheduleType;
	late String personScheduleTypeCode;
	late String dutyLeader;
	late String leaderScheduleType;
	late String leaderScheduleTypeCode;
	late String createTime;
	late int dutyType;

	DutyScheduleEntity();

	factory DutyScheduleEntity.fromJson(Map<String, dynamic> json) => $DutyScheduleEntityFromJson(json);

	Map<String, dynamic> toJson() => $DutyScheduleEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}